/*
 * @描述:
 * @作者: 约訂
 * @Date: 2024-07-15 10:49:39
 * @LastEditTime: 2024-07-16 13:39:43
 * @修改人员: 约訂
 */
import request from "@/utils/request";

// 新增部门
export function addDepartment(data) {
  return request({
    url: "Dept/Create",
    method: "post",
    data,
  });
}
/**查询部门 */
export function getDepartmentList(data) {
  return request({
    url: "Dept/Query",
    method: "post",
    data,
  });
}
/**编辑部门 */
export function editDepartment(data) {
  return request({
    url: "Dept/Update",
    method: "post",
    data,
  });
}
/**查询单个部门 */
export function getOneDepartment(id) {
  return request({
    url: "Dept/Get?id=" + id,
    method: "get",
  });
}
/**删除单个部门 */
export function delOneDepartment(id) {
  return request({
    url: "Dept/Delete?id=" + id,
    method: "get",
  });
}
export default {
  addDepartment,
  getDepartmentList,
  editDepartment,
  getOneDepartment,
  delOneDepartment,
};
